#include "networkzingmemanager.h"
#include <appchat/accountmanager.h>
#include <account/accountuser.h>

using namespace Network::Zingme;
Manager::Manager(QObject *parent) :
    Network::Manager(parent)
{
    this->m_serverEnpoints.push_back(Endpoint("ws","chat.realtime.me.zing.vn", 5050) );
    this->m_serverEnpoints.push_back(Endpoint("ws","chat.realtime.me.zing.vn", 5051) );
    this->m_serverEnpoints.push_back(Endpoint("ws","chat.realtime.me.zing.vn", 110) );
}


QVariant Manager::params() const
{
    QVariantMap map;

    map.insert("resource", QString("mobile"));
    map.insert("session_key", sessionKey());
    map.insert("deviceType", QString("unknown"));
    map.insert("imei", QString("000000000000000"));
    map.insert("uid", AccountManager::instance()->getUserId());

    return map;
}
